package com.liuqi.aiagent.mapper;

import com.liuqi.aiagent.transfer.entity.AgentToolBinding;
import com.liuqi.aiagent.transfer.entity.WebhookTool;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/**
 * @author liuqi
 * @date 2025/7/17
 **/
@Repository
@Mapper
public interface AgentToolBindingMapper {

    int saveBatch(List<AgentToolBinding> agentToolBindings);

    int deleteByAgentId(int agentId);

    List<String> findWebhookIds(int agentId);

    List<Integer> findAgentIdByWebhookToolId(int toolId);

    List<WebhookTool> findWebhookTool(int agentId);

}
